math/rand.Zipf.h (method)

5 uses

	math/rand (current package)
		zipf.go#L27: func (z *Zipf) h(x float64) float64 {
		zipf.go#L50: 	z.hxm = z.h(z.imax + 0.5)
		zipf.go#L51: 	z.hx0minusHxm = z.h(0.5) - math.Exp(math.Log(z.v)*(-z.q)) - z.hxm
		zipf.go#L52: 	z.s = 1 - z.hinv(z.h(1.5)-math.Exp(-z.q*math.Log(z.v+1.0)))
		zipf.go#L72: 		if ur >= z.h(k+0.5)-math.Exp(-math.Log(k+z.v)*z.q) {